import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { DbModule } from '../db/db.module';
import { ActivityModule } from '../activity/activity.module';
import { ClientsModule, Transport } from '@nestjs/microservices';
import { UserModule } from '@app/user';

@Module({
  imports: [
    DbModule,
    ActivityModule,
    UserModule,
    ClientsModule.register([
      { name: 'server-publish', transport: Transport.TCP },
    ]),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
